package com.itheima.service.db;


import com.itheima.domain.combat.Report;

import java.util.List;

public interface ReportService {
    //保存报告
    Integer saveReport(Report report);
    //根据报告的id和用户的id查询报告
    Report findReport(Integer reportId, Long loginUserId);

    //根据用户的ID和试卷的ID查询报告
    List<Report> findByUserId(Long loginUserId);


    //删除报告
    void deleteReport(Integer byUserIdReportId);
    //根据用户的id和试卷的Id查询报告
    Report findByUserIdOrQuestionnaireId(Long loginUserId, Integer id);
    //根据性格和问卷的ID查找性格
    List<Report> findByConclusionOrQuestionnaireId(String conclusion, Integer questionnaireId);


}
